package com.yy.wga.merchant.feign.api;


import com.yy.wga.common.core.dto.Result;
import com.yy.wga.merchant.feign.request.MerchantMomentShareGetReq;
import com.yy.wga.merchant.feign.response.MerchantMomentShareGetResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 发圈素材
 *
 * @author guochao
 * @since 2024-10-31 22:12:53
 */
@FeignClient(name = "MerchantMomentShareFeign",
        url = "http://127.0.0.1:9100",
        path = "/api/merchant/momentShare")
public interface MerchantMomentShareFeign {

    /**
     * 获取发圈素材
     * @param request MerchantMomentShareGetReq
     * @return MerchantMomentShareGetResp
     */
    @PostMapping("get")
    Result<List<MerchantMomentShareGetResp>> get(@Validated @RequestBody MerchantMomentShareGetReq request);
}
